package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Weather {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private BigDecimal temperature;
    private BigDecimal humidness;
    private String city;
    private Integer userid ;
    private String date;
    private String province;

    @TableField(exist = false)
    private String user;
}
